using JwtBearerDemo.JwtHelper;

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllers();
builder.Services.JwtBearer();  // 自定义Jwt鉴权

var app = builder.Build();
app.MapControllers();

app.UseAuthentication();    // 认证
app.UseAuthorization();     // 授权

app.Run();